import 'package:flutter/cupertino.dart';

class RandomNumber with ChangeNotifier {
  int _number = 1;
  int get number => _number;
  void increment() {
    _number++;
    notifyListeners();
  }

  void reduce() {
    _number--;
    notifyListeners();
  }

  void init() {
    _number = 1;
    notifyListeners();
  }
}
